#include <stdio.h>
typedef struct _sthead
{
    unsigned int m_ui_version;
    unsigned int command_id;
    unsigned int length;
    char         buf[10];
}TMessage_head;

int main(int arg, char* argv[])
{
    char buf[100] = {0};
    TMessage_head t_head;
    memset(&t_head, '\0', sizeof(TMessage_head));

    t_head.m_ui_version = 1;
    t_head.length = 2;
    memcpy(t_head.buf ,"aaaaaaaaaa", 10);
    memcpy(buf, &t_head, sizeof(TMessage_head));
    printf(">>>>%d\n",strlen(buf));
    return 0;

}
